package com.oes.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;

/**
 * @author liyutg
 * @create 10:37 2018/5/28
 * @desc ${DESCRIPTION}
 * @Modified By:
 **/

@Controller
public class FileUploadController {
    /**
     * @method:
     * @date: 2018/5/28
     * @author: liyutg
     * @description: TODO
     * @Param:
     * @return:
     */
    @RequestMapping("/homeworkUpload")
    public void homeworkUpload(MultipartFile file, HttpServletRequest request){
        MultipartFile file1=file;
        String filename=file1.getOriginalFilename();

    }
}
